import request from '@/utils/request'

//获取字典定义列表
export function getRoleList(data) {
	return request({
		method: 'get',
		url: 'tbSysRole/queryPageList',
		params: data,
	})
}

//添加字典定义
export function addedRole(data) {
	return request({
		method: 'post',
		url: 'tbSysRole/add',
		data,
	})
}

//修改字典定义
export function updateRole(data) {
	return request({
		method: 'post',
		url: 'tbSysRole/update',
		data,
	})
}

//删除字典定义
export function deleteRole(id) {
	return request({
		method: 'get',
		url: 'tbSysRole/delete/' + id,
	})
}

//获取字典定义详情
export function queryRole(id) {
	return request({
		method: 'get',
		url: 'tbSysRole/query/' + id,
	})
}